package base.system;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class GetAllProperties {
    public static void main(String[] args) {
        var properties = System.getProperties();
        var keySet = properties.keySet();
        keySet.forEach(ks -> System.out.println("System Property: {" + ks.toString() + " => "
                + System.getProperty(ks.toString()) + "}"));

        Object x = new GetAllProperties();
        Object y = new GetAllProperties();
        Object z = new GetAllProperties();

        System.out.println(x);

        List<Integer> collect = Stream.of(null, 1, 2, 3, null).collect(Collectors.toList());

        System.out.println(collect);
    }
}
